﻿@model FreightSoft.BusinessLogicLayer.SHIPMENT.Shipment

@{
    ViewBag.Title = "CreateShipment";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>CreateShipment</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Shipment</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.OriginPort)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.OriginPort)
            @Html.ValidationMessageFor(model => model.OriginPort)

            @Html.DropDownList("selectedOriginPortId", (SelectList)ViewBag.Org_Port_Id, " -- Select Origin Port -- ")
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DestinationPort)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DestinationPort)
            @Html.ValidationMessageFor(model => model.DestinationPort)

                         @Html.DropDownList("selectedDestPortId", (SelectList)ViewBag.Dest_Port_Id, " -- Select Destination Port -- ")
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ScheduleId)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ScheduleId)
            @Html.ValidationMessageFor(model => model.ScheduleId)
        </div>

        <p>
            <input type="submit" value="CreateShipment" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@*@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}*@
